Fix isConsoleDead() to actually run a command on the DomU, since a dead
authordan@guaranine.beaverton.ibm.com <dan@guaranine.beaverton.ibm.com>
Mon, 28 Nov 2005 18:22:02 +0000 (18:22 +0000)
committerdan@guaranine.beaverton.ibm.com <dan@guaranine.beaverton.ibm.com>
Mon, 28 Nov 2005 18:22:02 +0000 (18:22 +0000)
console is no longer exposed when attempting to attach.  This makes test
04_memset_smallmem again able to detect console death and restart
xenconsoled so that the rest of the tests can run on x86_64.

tools/xm-test/lib/XmTestLib/Test.py

index f6bc681cb1579b597a0d4a7469f40485cd3cdd10..4d8bb41c4781cc41c1d0e08f448621d9a8e03db2 100644 (file)
@@ -174,9 +174,11 @@ def isConsoleDead():
     try:
         domain.start()
         console = XmConsole(domain.getName())
+        console.runCmd("ls")
     except DomainError, e:
         return True
     except ConsoleError, e:
+        domain.destroy()
         return True
 
     domain.destroy()